<%--登录，张思尧--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Java实训团队协作简单案例 - 用户登录</title>
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="assets/vendors/font-awesome-4.7.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="assets/css/core.css"/>
    <link rel="stylesheet" rel="text/css" href="../ali/iconfont.css">
    <link rel="stylesheet" href="assets/css/login.css"/>
    <link rel="stylesheet" href="assets/css/a.css"/>
    <style>
        i.iconfont {
            font-family: 'iconfont';
            font-size: 50px;
        }
        body {
            background: rgb(240, 193, 199) no-repeat;
        }
        button {
            font-size: larger;
            border: 0px;
            background: rgba(255,255,255,0);
        }
        form{
            border: #3c3f41;
        }
    </style>
</head>

<body>
<h1>用户登录</h1>
<form class="login-container" action="/login">
    <div class="login-item">
        <label for="username">登录账号：</label>
        <input name="u" type="text" id="username"/>
    </div>
    <div class="login-item">
        <label for="password">登录密码：</label>
        <input name="p" type="password" id="password"/>
    </div>
    <div class="login-item">
        <label>验证码：</label>
        <input name="t" type="text" class="login-code"/>

        <a href="javascript:void(0)" onclick="ChangeCode()"><img src="/code" id="tom"/></a>
    </div>
    <div class="login-item">
        <button type="submit">
            <i class="iconfont">&#xe637;</i>
        </button>
    </div>
</form>
</body>
<script>
    function ChangeCode() {
        tom.src = "/code?t=" + Math.random();
    }
</script>
</html>